// 是否选择list
const WHETHER_SELECT_LIST = [
  {
    value: '1',
    label: '是'
  },
  {
    value: '2',
    label: '否'
  }
]
// 供货SKU表头
export const SUPPLY_SKU_COLUMNS = [
  { title: 'SKU编码', key: 'skuNo' },
  { title: '规格', key: 'specDetailStr' }
]
// 供货信息表头
export const SUPPLY_INFO_COLUMNS = [
  {
    title: 'SKU编码',
    key: 'skuNo'
  },
  {
    title: '规格',
    key: 'specDetailStr',
  },
  {
    title: '厂家商品代码',
    key: 'factoryCode',
    type: 'input',
    width: 120
  },
  {
    title: '厂家商品名称',
    key: 'factoryName',
    type: 'input',
    width: 120
  },
  {
    title: '最小订货量',
    key: 'minOrderGoodsNum',
    width: 160,
    type: 'inputNumSpecial'
  },
  {
    title: '是否保修',
    key: 'warrantyStatus',
    type: 'select',
    options: WHETHER_SELECT_LIST,
    width: 100
  },
  {
    title: '保修天数',
    key: 'warrantyDay',
    width: 160,
    type: 'inputNumSpecial'
  },
  {
    title: '是否可换货',
    key: 'exchangeGoodsStatus',
    type: 'select',
    options: WHETHER_SELECT_LIST,
    width: 100
  },
  {
    title: '换货天数',
    key: 'exchangeGoodsDay',
    width: 160,
    type: 'inputNumSpecial'
  },
  {
    title: '换货条件',
    key: 'exchangeGoodsCondition',
    type: 'input'
  },
  {
    title: '是否可退货',
    key: 'returnGoodsStatus',
    type: 'select',
    options: WHETHER_SELECT_LIST,
    width: 100
  },
  {
    title: '退货天数',
    key: 'returnGoodsDay',
    width: 160,
    type: 'inputNumSpecial'
  },
  {
    title: '退货条件',
    key: 'returnGoodsCondition',
    type: 'input'
  },
  {
    title: '最小退换货数量',
    key: 'minReOrExNum',
    width: 160,
    type: 'inputNumSpecial'
  },
  {
    title: '商品销售最小残次品',
    key: 'minSaleImperfectionsNum',
    width: 160,
    type: 'inputNumSpecial'
  },
  {
    title: '商品包装',
    key: 'productPacking',
    type: 'input'
  },
  {
    title: '其他服务承诺',
    key: 'otherPromise',
    type: 'input'
  }
]
// 供货价格相关信息表头 - 单计量
export const SUPPLY_PRICE_SINGLE_COLUMNS = [
  {
    title: 'SKU编码',
    key: 'skuNo'
  },
  {
    title: '规格',
    key: 'specDetailStr',
  },
  {
    title: '主计量单位',
    key: 'unitName',
    width: 85
  },
  /* {
    title: '进价类型',
    key: 'purchasePriceTypeStr',
  }, */
  {
    title: '主计量进价',
    key: 'mainPurchasePrice',
    type: 'inputNumSpecialChange',
    width: 160,
    precision: 3
  },
  {
    title: '厂家面价',
    key: 'factoryFacePrice',
    type: 'inputNumSpecial',
    width: 160,
  },
  {
    title: '进价备注',
    key: 'purchasePriceNote',
    width: 200,
    type: 'inputNoLimit',
    maxlength: 200
  },
  {
    title: '加价类型',
    key: 'addPriceTypeStr',
  },
  {
    title: '运费比例或金额',
    key: 'freightRatio',
    width: 160,
    type: 'inputNumSpecialChange',
    precision: 3
  },
  {
    title: '包装比例或金额',
    key: 'packRatio',
    width: 160,
    type: 'inputNumSpecialChange',
    precision: 3
  },
  {
    title: '加工费比例或金额',
    key: 'processChargesRatio',
    width: 160,
    type: 'inputNumSpecialChange',
    precision: 3
  },
  {
    title: '返利折合比例或金额',
    key: 'rebateRatio',
    type: 'inputNumSpecialChange',
    width: 160,
    precision: 3
  },
  {
    title: '返利说明',
    key: 'rebateRatioDesc',
    type: 'inputNoLimit',
    width: 160,
    maxlength: 300
  },
  {
    title: '成本价',
    key: 'mainUnitCostPrice'
  },
  {
    title: '发票类型',
    key: 'invoiceTypeName'
  },
  {
    title: '税率',
    key: 'taxRate'
  }
];

// 供货价格相关信息表头 - 多计量
export const SUPPLY_PRICE_MANY_COLUMNS = [
  {
    title: 'SKU编码',
    key: 'skuNo'
  },
  {
    title: '规格',
    key: 'specDetailStr',
  },
  {
    title: '供货计量单位',
    key: 'supplyGoodsUnit',
    width: 100
  },
  {
    title: '主计量单位',
    key: 'unitName',
    width: 85
  },
  {
    title: '理论转换率',
    key: 'theoryConvertRatio',
    type: 'inputNumSpecialChange',
    width: 160
  },
  {
    title: '实际转换率',
    key: 'actualConvertRatio',
    type: 'inputNumSpecialChange',
    width: 160
  },
  /* {
    title: '进价类型',
    key: 'purchasePriceTypeStr',
  }, */
  {
    title: '辅计量进价',
    key: 'purchasePrice',
    type: 'inputNumSpecialChange',
    width: 160,
    precision: 3
  },
  {
    title: '主计量进价',
    key: 'mainPurchasePrice',
    width: 100
  },
  {
    title: '厂家面价',
    key: 'factoryFacePrice',
    type: 'inputNumSpecial',
    width: 160,
  },
  {
    title: '进价备注',
    key: 'purchasePriceNote',
    width: 200,
    type: 'inputNoLimit',
    maxlength: 200
  },
  {
    title: '加价类型',
    key: 'addPriceTypeStr',
  },
  {
    title: '运费比例或金额',
    key: 'freightRatio',
    width: 160,
    type: 'inputNumSpecialChange',
    precision: 3
  },
  {
    title: '包装比例或金额',
    key: 'packRatio',
    width: 160,
    type: 'inputNumSpecialChange',
    precision: 3
  },
  {
    title: '加工费比例或金额',
    key: 'processChargesRatio',
    width: 160,
    type: 'inputNumSpecialChange',
    precision: 3
  },
  {
    title: '返利折合比例或金额',
    key: 'rebateRatio',
    type: 'inputNumSpecialChange',
    width: 160,
    precision: 3
  },
  {
    title: '返利说明',
    key: 'rebateRatioDesc',
    type: 'inputNoLimit',
    width: 160,
    maxlength: 300
  },
  {
    title: '理论转换率辅计量成本价',
    key: 'theoryConvertRatioCostPrice',
    width: 160
  },
  {
    title: '实际转换率辅计量成本价',
    key: 'actualConvertRatioCostPrice',
    width: 160
  },
  {
    title: '主计量成本价',
    key: 'mainUnitCostPrice',
    width: 100
  },
  {
    title: '发票类型',
    key: 'invoiceTypeName'
  },
  {
    title: '税率',
    key: 'taxRate'
  }
];
